﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_Popup.Master" CodeBehind="AssignMenuPopup.aspx.vb" Inherits="I_PORT.AssignMenuPopup" 
    title="IRPC INTELLIGENT PORT SERVICE" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
    <ContentTemplate>
    <table width="100%" border="0" cellpadding="2" cellspacing="0">
       <tr>
         <td align="center">
         <asp:GridView ID="gridAssign" runat="server" SkinID="gridblueNoPage"  DataKeyNames="Menu_no,Show_Menu,Edit_Menu,Add_Menu,Delete_Menu,Approve_Menu,Mode"
                     AutoGenerateColumns="False" AllowPaging="False">
                     <Columns>
                         <asp:BoundField HeaderText="ชื่อเมนู" DataField="Menu_name" />
                         <asp:BoundField HeaderText="หัวข้อ" DataField="Mode" ItemStyle-Width="100px" />
                         <asp:TemplateField HeaderText="แสดง" ItemStyle-Width="35px">
                             <ItemTemplate>
                                 <asp:CheckBox ID="chkShow" runat="server" SkinID="chk" />
                             </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="สิทธิ์" ItemStyle-Width="100px">
                             <ItemTemplate>
                                 <asp:CheckBoxList ID="chkRole" runat="server" SkinID="chk" RepeatDirection="Horizontal" >
                                    <asp:ListItem>Edit</asp:ListItem>
                                    <asp:ListItem>Add</asp:ListItem>
                                    <asp:ListItem>Delete</asp:ListItem>
                                    <%--<asp:ListItem>Approve</asp:ListItem>--%>
                                 </asp:CheckBoxList>
                             </ItemTemplate>
                         </asp:TemplateField>
                     </Columns>
             </asp:GridView>
         </td>
       </tr>
       <tr>
         <td align="center">
               <asp:Button ID="btnSave" runat="server" Text="บันทึก" CssClass="ButtonStyle" />
               <asp:Button ID="btnCancel" runat="server" Text="ยกเลิก" CssClass="ButtonStyle" />
         </td>
       </tr>
     </table>
     </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>
